<!DOCTYPE html>
<html>
<head>
    <title>SPC收益记录表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="3">
                    <i-input v-model="q.name" @on-enter="query" placeholder="手机号/ID"/>
                </i-col>
                <i-col span="3">
                    <i-input v-model="q.start" @on-enter="query" placeholder="开始时间"/>
                </i-col>
                <i-col span="3">
                    <i-input v-model="q.end" @on-enter="query" placeholder="结束时间"/>
                </i-col>
                <i-col span="3">
                    <i-select v-model="q.type" placeholder="收益类型">
                        <i-option value="1">普通邀请注册</i-option>
                        <i-option value="2">运动得能量值-普通用户</i-option>
                        <i-option value="3">获得资质-D-one特权</i-option>
                        <i-option value="4">运动得能量值-D-one特权</i-option>
                        <i-option value="5">新用户注册</i-option>
                        <i-option value="6">D-one邀请注册</i-option>
                        <i-option value="7">任务奖励</i-option>
                        <i-option value="8">兑换商品</i-option>
                        <i-option value="10">商城产购买品</i-option>
                        <i-option value="11">普通运动返奖励</i-option>
                        <i-option value="12">Done运动返奖励</i-option>
                        <i-option value="13">能量值转入</i-option>
                        <i-option value="14">能量值转出</i-option>
                        <i-option value="15">每日释放</i-option>
                        <i-option value="16">游戏消耗</i-option>
                        <i-option value="17">兑换Done</i-option>
                        <i-option value="18">游戏奖励</i-option>
                        <i-option value="19">普通用户推荐Done</i-option>
                        <i-option value="20">Done用户推荐Done</i-option>
                        <i-option value="21">团队购物</i-option>
                    </i-select>
                </i-col>
                <i-col span="3">
                    <i-select v-model="q.incomeType" placeholder="状态">
                        <i-option value="0">收入</i-option>
                        <i-option value="1">支出</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <i-button type="warning" @click="queryGameDetails"><i class="fa fa-pencil-square-o"></i>&nbsp;游戏明细</i-button>
                #if($shiro.hasPermission("energyspc:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("energyspc:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("energyspc:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("energyspc:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="energySpc" :rules="ruleValidate" :label-width="120">
            <Form-item label="用户编号" prop="uid">
                <i-input v-model="energySpc.uid" placeholder="用户编号" readonly/>
            </Form-item>
            <Form-item label="被邀请人ID" prop="inviteUid">
                <i-input v-model="energySpc.inviteUid" placeholder="被邀请人ID" readonly/>
            </Form-item>
            <Form-item label="手机号" prop="phone">
                <i-input v-model="energySpc.phone" placeholder="手机号" readonly/>
            </Form-item>
            <Form-item label="被邀请人手机号" prop="invitePhone">
                <i-input v-model="energySpc.invitePhone" placeholder="被邀请人手机号" readonly/>
            </Form-item>
            <Form-item label="spc数量" prop="energyCoin">
                <i-input v-model="energySpc.energyCoin" placeholder="spc数量" readonly/>
            </Form-item>
            <Form-item label="类型编号" prop="type">
                <i-input v-model="energySpc.type" placeholder="类型编号" readonly/>
            </Form-item>
            <Form-item label="类型名称" prop="typeName">
                <i-input v-model="energySpc.typeName" placeholder="类型名称" readonly/>
            </Form-item>
            <Form-item label="状态" prop="incomeType" readonly>
                <Radio-group v-model="energySpc.incomeType">
                    <Radio label="0">
                        <span>收入</span>
                    </Radio>
                    <Radio label="1">
                        <span>支出</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <!--<Form-item label="logo图片" prop="image">-->
                <!--&lt;!&ndash;<i-input v-model="energySpc.image" placeholder="logo图片"/>&ndash;&gt;-->
            <!--</Form-item>-->
            <!--<Form-item label="创建时间" prop="createDate">-->
                <!--<i-input v-model="energySpc.createDate" placeholder="创建时间"/>-->
            <!--</Form-item>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <!--<i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>-->
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/energy/energyspc.js?_${date.systemTime}"></script>
</body>
</html>